package com.frank.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.frank.subject.infra.basic.entity.SubjectInfo;

import java.util.List;

/**
 * 题目信息表(SubjectInfo)表服务接口
 *
 * @author makejava
 * @since 2024-01-23 17:20:39
 */
public interface SubjectInfoService extends IService<SubjectInfo> {



    /**
     * Count by condition
     * @param subjectInfo Subject info
     * @param labelId Label id
     * @param categoryId category id
     * @return count
     */
    int countByCondition(SubjectInfo subjectInfo, Long labelId, Long categoryId);

    /**
     * Query page
     * @param subjectInfo Subject info
     * @param categoryId category id
     * @param labelId label id
     * @param start start
     * @param pageSize page size
     * @return list
     */
    List<SubjectInfo> queryPage(SubjectInfo subjectInfo, Long categoryId, Long labelId, int start, Integer pageSize);
}
